adding width and height correction