adding and debugging