modified b), put to file