utility functions for ot