unused code
add assertions