reverting portfolio hack