replaced tuple with list and system with subrocess.call