updating variable

forgot to change this x to y (i.e. just filename and not path)