added correspondance check for rails