call done() to free input