removed bug in print