avoid divide-by-0
add comment