selection works for an array of two objects