gray scale and not all in main function