fixed this reference problem