fixed intersect problem and added size 0 security