expected error solved