fixed bugs in group and added create group method