updated direction setting in getters and setters