added bunsen's writing func