working on better photomoetry