removed the error logging