fade algorithm attempt