added comments/fixed sliding issue