change system to backtick method to capture output