first part of the agolrithms dll