handling empty output