changed blocking function initialization