the real refactoring code

Signed-off-by: M.Satrya <satryabima24@gmail.com>