refactored to add new div around path