added type to notification