solve \n problem