trying to fix smooth movement