revert to original head element code