added a clean in beforebuild