working without rearranging medals