fixed generator bug. implemented oracle.