modified get_definitions method to return definitions rather than objects