fixed typo of flight and added optimized fixed amount