made the write methods accessible