renamed params and vars, made scope public for setting