changed according to event based approach (see backend)