added get_caleg method