fixed by williammck