add beginning of analytic method