changed the header file for recursive possibilities and started the remove function