solved an issue with not well transition beteen points and ranges