update  graymap class