sub-divided process method og build class into different method to reduce method complexity