cleanup and do bounding