deleted commented code for previous client api