added remove() code, but still need to fix compile errors