changed val to text