add bounding rect calculation #2