updated to allow strings to be passed as vals
now properly can add strings as values