test vector
clean up code