modifying submit script to work for specified groups