update for getBounds

remove duplicated assignments