change unnecessary dynamic parameter to string