regenerate sample files
add t test function