mongo array manipulation functions added