create signature logic