first step to notifications logic