try named scope and scope on associations