no more errors,changed to select from view