found = 0 error fixed