adding flow properties function