tryed to  fix relative direction bug