need to pass correct var to template