write exceptions solved