improved gratingOPh5