resolving all errors