func call not return, output strings twice