removed dbprint and setting norid to ideal(1) if id is the unit ideal