added write method