Adjust center function