completed part one of APIs