add function of handling multi-line