use variables for gray