CHANGED:applied the task with decision variables