add looping and correct working of one to many needs fixing of display as caculates time wrongly