added if to text value