add sign logic