update dynamic code
update code for #2