milestone: mhi is correctly calculated just missing add the motion detect class