adding parallel scan