updated to WP coding standards