added a straightenBlock() method for the clamp