ensured that fname doesn't blank