removing head from code