checking  for 0 and location