changed code in removeAll to be faster and changed some spacing.

same code as #1104 with 5.2 code removed