added weights query