adding base line code for group manipulation