improvements on random movements