added getResidenceTime()