passed variables into function calls and continued debugging