added notification function