automatically sets the filename