working on calcHitWidth