removed header and footer spaces