get output more flexible