Here and in elem before, use format instead of %