implemented glueToMap