update element in collection