create shield active function