adding support for sampling interval