preparing code for adding to ALLTED task, depending on params