handle numeric and boolean data