macro to make selection optimization cuts