combines two update methods to increase speed