update metadata
add log into model