copied, removed extra var