check valve

pre: needleman wunsch
next: mysql foreign key constraint