changed the exception so I dont swallow it and throw the right type
fixed spacing