added basic direction functionality in