after fix to FPI, can now use q array as a parameter