moved check into function check_and_clean_from_address.