solved GRPH problem