error in readfile