added update_doors prototype