code cleanup (errors to instance creation)