refactory processId design.