cleaning up header and spaces