clearing up some debug and stupid errors