remove a local variable
isFlex helper
setDimension helper