template for rtp methods