graphColor method added