added a timer
it took too many time