added fade code