changed not found response from -1 to 0