refactored using pyquery