now arrow can move correctly