minimize steps involved