Useless array removed

Use in-place filtering, no reason for an extra array