added write methods