bug fix in intersection by rewriting the function, adding time display