quick fix with var declaration