changed way how direction works