Is this the right code? if it is it just saves whenever i get more than 0