semi working training

random bug is somewhere.. or thing else+ ?