added 2 new functions for basic measurement