implementing glueToMap