fixed reference to mapname to just map