added string.format()'ing to print statments