some algorithmic clafairications