minor optimization

minor optimization.