tool working - need to fix output