checked for empty filename