change instances to handle errors