added new function to print vars