clean not in use and warnnings