basic working version of customized output