how to find the mod function. There are any references about how to find the mod function in here. you can look below.