added func. of removing and adding members