compact get_by_name example