more testing plus print function