error throws need fixing