added width and height variables