rename previous array element from arr to prv