initial implementation of setoff