use the fadebalance functions in main