move notify-send to function