make sure initFunction works with