wrapper for online learning fix