fixed nodes going outside of range and removed console.log