An automatic system for material removal with unknown factors