solved the moving right issue