updated this to now throw an error