both predict() methods should be constant