set to done after processed