solved filter array problem