added function to predication