adds some cleanup from previous leayout