move instances to end of file