added createSecurityGroup  function