improve assigns bulk remove
some performance optimizations