starting ideal quotient code