added getting methods in generator