SQUASH ME: fixed glue function