conversion now works with pipe - much faster