adding subprocess, taking out old way