added built in head function