remove useless logging
add an assertion