add functions to utilities for specs