adjusting file types in main function