added "get_generation"