renamed adaptation and similarity functions, for consistency in the report