added head and foot blocks