Revert "rename parameter and add function generate_filename"

This reverts commit 7d7afd0e843f07262886b959c276415320bcec58.