half way through print function