better filename updating