tweak label positioning code