update exp
delete metadata if empty