min steps dynamic