added list function for group model