working on type3 processing