fixing the infomred exception