added a parameter to chose, what outputfile is chosen