refactor magic number for head position offset