rework to work with variable resolutions