Using id instead of index of array