updated maps code