refactor amdclean