only return valid messages