fixed use of static reference