- fixed parent() function call
 - put child parent in a var