review and debug