updated to wp coding standards