before switiching to sample API