Refuctoring
Signed-off-by:greenray <greenray@barracuda>