added filename construct functinality