Fixed results of all by passing array of objects