lme utility functions