implementing add parents feature