poor excuse for a print function