signing refactory