refactor linq_conversions