implements prototype for maps