collection api fixed