static to dynamic convert