before tasks change