fixed types of arguments of predict()