merge Dajung's change: complexity