Forgot to change function appropriately to text instead of value