removed extra variable