pinmaps and defines