added to array
fixed error message