need to use callDetail() function to use variables