improve custom printing