Changed the perrror statemetns a little