refactored code towards allowing multiple proccesses to be hidden