add retention type runtime