add proper delays