added $user global