added output of functions