now use isOutput instead of outs.at