get_definitions function created