added predit stuff