removing extraneous map code