fixing clean up for member