modify process to gather process information only once