fixed issue with results having newlines