fill out write method