switched param order for foreignkey