detail cleanup