added outputs, remove small typo