set correct security group