you say that it will be shown later but you include it below...perhaps you want to delete the use of `expand_trig` below?