add the missing condition