if you do sth on the fly, you do it quickly while sth else is happening, and without thinking about it very much