api change, define in prototype