trying to figure out bugs