return instead of write