center plugin improvement