removed getHeight() and getWidth()