making relation between models