shortening function by removing labels