update deprecated mock() to double()