removed extra var declarations #2