finished to implement delays, but there are bugs