change logic how print non-text contents