implemented resolution switching