saparate training phase and testing phase