refractor a bit
fix walkleft bug