changed pixel size conditions