allow to set custome sampling interval