static to dynamic