finished adding the start and update code