updating for new version of wp