moved result outside method