get filename right