add methods with generators