diff --git a/python/ooldtp.py b/python/ooldtp.py
index 2746a76..47d0cf6 100644
--- a/python/ooldtp.py
+++ b/python/ooldtp.py
@@ -37,9 +37,9 @@ class component:
         self.__window = window
         self.__name = name
         self.role = role
-
+ 
         if name != '' and role == '':
-            self.role = ldtp.getobjectproperty (window, name, 'class')
+           self.role = ldtp.getobjectproperty (window, name, 'class')
         try:
             self.label = ldtp.getobjectproperty (window, self.getName (name), 'label_by')
         except ldtp.LdtpExecutionError:
@@ -955,24 +955,27 @@ class component:
         else:
             raise ldtp.LdtpExecutionError ('Mismatch arguments')
 
-class context (component):
-    def __init__ (self, window) :
-        component.__init__ (self, window)
-        self.__window = window
-        # self.component = component (window)
-
-    def getchild (self, name = '', role = '', parent = ''):
+    def getchild (self, name = '', role = ''):
         if name == '' and role == '':
             raise ldtp.LdtpExecutionError ('Atleast one argument should be provided <object name> or <role name>')
-        if role != '' or parent != '':
-            childList = ldtp.getchild (self.__window, name, role, parent)
+        if role != '':
+            childList = ldtp.getchild (self.__window, name, role, self.__name)
             componentList = []
             for i in childList:
-                componentList.append (component (self.__window, i, role, parent))
+                componentList.append (component (self.__window, i, role))
             return componentList
         else:
             return component (self.__window, name)
 
+
+
+class context (component):
+    def __init__ (self, window) :
+        # name of component and window are the same
+        component.__init__ (self, window, window)
+        self.__window = window
+        # self.component = component (window)
+
     def onwindowcreate (self, cbFunction):
         return ldtp.onwindowcreate (self.__window, cbFunction)
 
