change container type of state argument passing to Ratelow's derivative function