changed conditional from != to 0 to > 0