optimize results: work with states