converted platMap to a switch