moved methods to analysis section