enforce foreign key constrain