finished group functionallity