Update head.java

Pavan's changes