added a function prints