added reference variable