start to work on training algo problem