removal of getHead() method