utility functions for peco