to use trained model