made waitinglists
added group stuffs
made count function
merged count function