clean up and handle conditional labels