fading implementation, pic controller fix