change MAP calculation