clean up
fixed last modified header check