added some stuff for printing