removed input parameter to thrown method when assigning to variable