center plugin modified