simple printing method added