added number of wp and current wp