moved resolution check