refact 6