removed the comod import and ptype instance variable