modify connect and codereview basic data structure