assign type to with stmt