removed unnecessary error logging