remove useless '|| 0', since nil.to_i => 0.