removed extra var declarations