cleanup as_character