updated version (according with flex)