using two or more gratings