maps related codes