override top labels function