implement active flag