making refactory