changed random point selection