updated for detail api