changing hardcoded filename to a var

changing hardcoded filename to a var