make the dicision code more beautiful