add if statements and changed completeRollback to postRollback