fixed the mistake with head