simplifying and debugging