refactoring for modjk define