improve step function mor multidirectional movement