working on parent() function