deleted unused variables to remove a compile warning