added the output feature