renamed the rest apis and functions to meaningful names