changed method def list to queryset