reverted back to using a sleep