switch use of dynamic