fixing another scope issue