test different file method