typo fix - no 'else' in write