updating prototype methods