adding some helper functions that were missing