updated print and printmap