add function to compare outputs