fixing erors