added missing functions