changed template to use real rl