cleanup and ordering methods