finalize notification function