Corrected some mistakes and use the funtion lerp now