fix var placement
added cas