use context of first objects if array of objects given