updating prototype