direction function() is a better name