fixed transpose array code.
add id collection for single data query.