a bit purerify debug print
a bit purelify