changed map calculation