update rems to ems