added output functions