updating grays