changed API formatting