added getBounds method