started using str.format() instead of '%'