update to output functions