added deduction functionality, also you can delete entries in the index