restore accidentally removed function