add case in if-clause for capped
add comment