optimize end of fft_output subroutine
add display test pattern