prdict method added