added scaling to different resolutions