solving mistakes