some changes to prints and global values