generalize HEADPLUSLATESTn