moved head and foot into own includes