protect critical secion of Proc