code fixed but very slow