derivative script