write method documentation