remove debugging
fix warnings