added some functions for Winkler