changed what to do if resolution is zero