fixed some stuff. printing edge counts to find bug...