signed sub and add working