remove redundant utility function