fixing erorrs