refactored code to default resolution.