debuged a bunch