figuring out bugs