uncommenting the parts of code with sigprocmask and calling of further functions