remove unused var
move init in WP to the top for easier read the source