removed sleep statement