modify head and foot