reverting back to prev code