refactored to list comprehensions
eliminated comments and changed to bar svg