fixed wrapping in wrong case; made fade static for more performance