random errors fixed