set correct suffix for file name