better printing on terminal