changed delay to 0.01 in order to have the least amount of delay possible