what is the purpose of direct methods?