writing adapter & adding notification