added inteprolation method