finished some auxilliary funs for use in expression/flux comparison