fixed utility functions