replaced array with updated version [] and error labels