now everyting works fine. But I need to add message passing