adding type notification functionality