minor fix in a add_element parsing method
update model function implemented