move macro to the end of the file