added output feature