added 'remove' subprogram