replaced content var with result var