added a delay in order to solve the partition problem