結果 : integration of mod function