cleaning up beat, main