use userid instead of id