wrote main file as a benchmark