use split line function