fixed incorrect use of 'filename'