added sleep before rendering