getBounds tweak

removed some unused code