modules for learning algos