refactoring of flying points