output correct filename