updated for WordPress