now horizontal movement is working