did some debugging