make sure pstep + hgap never goes out of range