rewritting function (drug resp suite)