functions for checking measurements