use the same gray in all functions