changed call to compare_outputs subroutine