adding new mongo logic