changement fuction test to data