changes made to the principal task and another var was added