resetting the head