add in backbone traning de code for partial pattern