moved the analytes method from an akward association into a method