reverting last function