moved userID to global