added some debugging... still not sure