patterns from mongodb