replaced user with userid