unnecessary head function removed