half fixed the center fade function