wrapper for online learning