add call to computeRRInterval and change types