zad1 fix to writing