move heading to the top of the file