remove previous map code