var declaration fix