more work in insert atoms filter....runs slow...could use profiling