added linear accerlation to direction