forgot to take out debugging stuff