implementing media add
merge update