width and height function fixed