use builtin method to determin if mod