remove unsafe call to head