split printl function