added tasks array generation