use \1 instead $1 in .sub