moved variable construction