Code

switch from invokeBbox to getBounds (need to fix problems with empty