Feanil/flatten vars