modify sheet process function