skeleton of new analysis algorithm