added key constraint