added automatic paper size