makeGray method