changing variables past to arrays with user id