criteria for varchar and text working