delete old get_center function