first version of direction feature (poor results)