Refactordirection method to have less code