isolated the fadeout in a modified surface
use integer division
remove commented dead code