clean up filename variables