fixed out of order parameters for new api method