changed active function