refactor _value to value inside the template