detection prediction part changes