updated line 121 to ft_selectdata using 'key-value' pairs