working on profile function in test_stat2