umalqura code optimization