shouldn't put code within with block