modified classifyCenter