reset to 0 sooner for easier validation