change static path to dynamic path