added time analysis