removed pvalue variable. As a short term solution, restrict pvalue from
indexing time