added correct predication