fix zoo based on quality code