cleaned up direction code by using location.add instead of manual definitions