cleaned & optimized the getBounds/updateBounds functions and usage