removed unused variable causing warning