add print and debug