minor (remove duplicate code). #262