corrected error with 0's