added output()