updated getSales method