adding result storage