add model scope and model relation ship