updated maps functions