added parent function
added remove function