result prototype code is done