finds direction