ids mod 3-5-7