clean-up and reduction to the needed