take out extra var declaration