update replace prototype