refactor complete

Signed-off-by: flash-square <david.guillemin@gmail.com>