working applicatiomn with greyscale