remade map code