removed excess debug output
fixed small bug