fixed issue related to incorrectly assigning output when called without output argumentes