minor performace improvement