rescue nil to 0