solve error array