removing extra brackets from exec call