setup output
implemented delete