remove duplicate code from manage